import request from "@/utils/request.js";
/* 
    获取商品列表
*/
export function getproData() {
    return request({
      url: "/admin/pro/list",
      method: "GET",
    });
  }
  /* 筛选商品 */
  export function sortprodata(category,search){
    return request({
      url:'/admin/pro/searchPro',
      method:'POST',
      data: {
        category,
        search,
      },
    })
  }